<cu-custom bgColor="bg-gradual-blue" isBack="{{true}}">
  <view slot="backText">返回</view>
  <view slot="content">写给未来的信</view>
</cu-custom>



  <view class="cu-bar bg-white solid-bottom">
    <view class="action">
      <text class="cuIcon-title text-orange "></text> 基本信息
    </view>
    <!-- <view class="action">
      <button class="cu-btn bg-green shadow" bindtap="showModal" data-target="gridModal">设置</button>
    </view> -->
  </view>

  <view class="cu-form-group">
		<view class="title">电子邮箱</view>
		<input bindblur="inputEmail" value="{{email}}" placeholder="例如：您的QQ号@qq.com"></input>
    
		<text wx:if="{{emailRight==1}}" class="cuIcon-roundclosefill text-red"></text>
		<text hidden>{{emailRight}}</text>
    <text wx:if="{{emailRight==2}}" class="cuIcon-roundcheckfill text-green"></text>

	</view>
  <view class="solids-bottom padding-xs flex align-center">
   
    <view class="flex-sub text-left">
      <view class="text-sm padding-sm">
        <text class="text-grey">请填写需要接收邮件的邮箱地址 👆\n 例如QQ邮箱：<text class="text-blue">您的QQ号@qq.com</text></text>
      </view>

    </view>
  </view>

    	<view class="cu-form-group">
		<view class="title">邮件标题</view>
		<input maxlength="20" value="{{title}}" bindblur="inputTitle" placeholder="请输入邮件标题"></input>
	</view>
    <view class="cu-form-group">
		<view class="title">日期选择</view>
		<picker mode="date" value="{{date}}" start="{{begin_date}}" end="{{endTime}}" bindchange="dateChange">
			<view class="picker">
				{{date}}
			</view>
		</picker>
	</view>
    	<view class="cu-form-group">
		<view class="title">时间选择</view>
		<picker mode="multiSelector" bindchange="timeChange" value="{{multiIndex}}"
		 range="{{multiArray}}">
			<view class="picker">
				{{multiArray[0][multiIndex[0]]}}:{{multiArray[1][multiIndex[1]]}}
			</view>
		</picker>
	</view>

  <view class="cu-bar bg-white solid-bottom margin-top">
    <view class="action">
      <text class="cuIcon-title text-orange "></text> 信件正文
    </view>
    <view class="action ">
      <!-- <button class="cu-btn bg-green shadow" bindtap="showModal" data-target="gridModal">设置</button> -->
      {{noteNowLen}}/{{noteMaxLen}}
    </view>
  </view>
<view class="cu-form-group">
		<textarea style="height:10em" maxlength="{{noteMaxLen}}" value="{{content}}"  bindinput="bindTextAreaChange" placeholder="请输入信件正文"></textarea>
	</view>
		<view class="cu-form-group">
		<view class="title">将信件匿名放入公开信板块，供他人阅览</view>
		<switch class="orange radius sm" bindchange="onChangeMailShow" checked></switch>
	</view>

<view class="padding-xl">

  <button bindtap="uploadMessage" class="cu-btn block bg-blue margin-tb-sm lg">
    <text class="cuIcon-upload"></text>提交</button>

</view>

<ad unit-id="486eba507bd7b46275f6a2f595972d72" type="feeds"></ad>